<!DOCTYPE html>
<html>
<head>
<#assign contextPath = request.contextPath/> 
<meta charset="utf-8" />
<title>在线投票系统</title>
<link href="${contextPath}/css/bootstrap.min.css" rel="stylesheet">
<link href="${contextPath}/css/toastr.css" rel="stylesheet" />
<script type="text/javascript"	src="${contextPath}/js/jquery-3.0.0.min.js"></script>
<script src="${contextPath}/js/toastr.js"></script>
</head>

<body>
	<script>
		var msg = '${msg!}';
		var parammsg = '${Parameters.msg!}';
		if (msg != '') {
			toastr.info(msg);
		}else if(parammsg != ''){
			toastr.info(parammsg);
		}
	</script>
	<div class="container" style="width: 500px;">
		<form class="form-horizontal" role="form" action="${contextPath}/login.action"
			method="post">
			<h2 class="form-signin-heading">请登陆</h2>
			<div class="form-group">
				<label for="username" class="col-sm-2 control-label">用户名</label>
				<div class="col-sm-10">
					<input type="text" name="username" class="form-control"
						id="username" placeholder="请输入用户名" value="admin" required>
				</div>
			</div>
			<div class="form-group">
				<label for="pwd" class="col-sm-2 control-label">密码</label>
				<div class="col-sm-10">
					<input type="password" name="password" class="form-control"
						id="pwd" placeholder="请输入密码" value="admin" required>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<div class="checkbox">
						<label> <input name="remenber" value="0" type="checkbox">请记住我
						</label>
					</div>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<button type="submit" class="btn btn-primary">登录</button>
					&nbsp;&nbsp;
					<button type="button" class="btn btn-default"
						onclick="javascript:location.href='registerPage.action'">注册</button>
				</div>
			</div>
		</form>
	</div>
</body>

</html>